<?php
header("Access-Control-Allow-origin:*");

$page = $_POST["page"] ? $_POST["page"] : 1;
$arr = [];
$resArr = [];
$pagesize = $_POST["pagesize"] ? $_POST["pagesize"] : 20;
$start = ($page - 1) * $pagesize + 1;
$end = $page * $pagesize;

if ($page == 3) {
    $end = $page * $pagesize - 5;
}

$arr["status"] = 1;
$arr["msg"] = 1;
$arr["redict"] = 1;
// $arr["data"]["list"] = [];
for ($i = $start; $i <= $end; $i++) {
    $arr["data"]["list"][] = array('id' => $i, 'biz_name' => '金牌橱柜' . $i, 'logo' => 'https://wnworld.com/uploads/jjd/01.jpg', 'c_time' => '2018-08-27 15:14', 'money' => '1398.00');

}

echo json_encode($arr);

?>